<% for column in User.content_columns %>
<p>
  <b><%= column.human_name %>:</b> <%=h @user.send(column.name) %>
</p>
<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @user %> |
<%= link_to 'Back', :action => 'list' %>

<% if @user.has_datafiles? %>
  <h3><%= @user.firstname %>&quot;s Files</h3>
  <table>
  <% for datafile in @user.datafiles %>
    <tr>
      <td><%= datafile.path %></td>
      <td><%= datafile.timestamp %></td>
    </tr>
  <% end %>
  </table>
<% end %>